<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>flex布局实例-基本网格布局</title>
    <style>
        .grid {
            display: flex;
        }

        .grid-cell {
            flex: 1;
            height: 60px;
            border-radius: 4px;
            background-color: #e0e0e0;
            margin: 10px;
            padding: 10px;
        }
    </style>
</head>
<body>
    <div class="grid">
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
    </div>

    <div class="grid">
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
    </div>

    <div class="grid">
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
        <div class="grid-cell">1</div>
    </div>
</body>
</html>